<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
use Dcat\Admin\Admin;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');

    $router->resource('user', 'UserController');
    $router->resource('team_setting', 'PerformanceLevelController');
    $router->resource('user_setting', 'UserLevelSettingController');
    $router->resource('user_sign', 'SignRuleController');

    $router->resource('product_categories', 'ProductCategoryController');
    $router->resource('products', 'ProductController');
    $router->resource('product_order', 'ProductOrderController');
    $router->resource('product_shipments', 'ProductShipmentController');

    $router->resource('point_product', 'PointProductController');
    $router->resource('point_order', 'PointOrderController');
    $router->resource('point_shipment', 'PointShipmentController');
    $router->resource('point_setting', 'PointSettingController');

    $router->resource('group_order_settings', 'GroupOrderSettingController');
    $router->resource('group_order_session', 'GroupOrderSessionController');
    $router->resource('group_order', 'GroupOrderController');
    $router->resource('group_shipment', 'GroupShipmentController');
    $router->resource('group_products', 'GroupOrderProductController');
    $router->resource('order_batch', 'OrderBatchController');
    $router->resource('group_user_batches', 'GroupOrderBatchController');

    $router->resource('member_topup_orders', 'MemberTopupOrderController');
    $router->resource('payment_accounts', 'PaymentAccountController');

    $router->resource('control_lists', 'ControlListController');

    $router->resource('withdrawal', 'WithdrawalController');
    $router->resource('withdraw_cash_setting', 'WithdrawCashSettingController');

    $router->resource('bean_settings', 'BeanSettingController');
    $router->resource('bean_package', 'BeanPackageController');
    $router->resource('user_bean_packages', 'UserBeanPackageController');
    $router->resource('trading_hall', 'TradingHallController');

    $router->resource('expresses', 'ExpressController');

    $router->resource('carousels', 'CarouselController');

    $router->resource('notices', 'NoticeController');
    $router->resource('term_policie', 'TermPolicyController');

    $router->resource('check_in_application', 'CheckInApplicationController');
    $router->resource('log', 'ActivityLogController');

    $router->resource('wallet_transactions', 'WalletTransactionController');
    $router->resource('bean_transactions', 'BeanTransactionController');
    $router->resource('reward_transaction', 'RewardTransactionController');
    $router->resource('point_transaction', 'PointTransactionController');
    $router->resource('daily_bean_release', 'DailyBeanReleaseController');
    $router->resource('point_release_record', 'PointReleaseRecordController');
    $router->resource('dividend_pool', 'DividendPoolController');
    $router->resource('point_price_history', 'PointPriceHistoryController');
    $router->resource('combustion_record', 'CombustionRecordController');
    $router->resource('combustion_integrals', 'CombustionIntegralController');

    $router->resource('WalletAccount', 'WalletAccountController');
    $router->resource('UserRewardAccount', 'UserRewardAccountController');
    $router->resource('PointAccount', 'PointAccountController');
    $router->resource('GoldBeanAccount', 'GoldBeanAccountController');

    $router->resource('advance_card', 'AdvanceCardController');
    $router->resource('advance_card_setting', 'AdvanceCardSettingController');
    $router->resource('advance_card_transaction', 'AdvanceCardTransactionController');

    $router->resource('voucher_package', 'VoucherPackageController');
    $router->resource('voucher_package_transaction', 'VoucherPackageTransactionController');

    $router->resource('SinglePool', 'SinglePoolController');
    $router->resource('SinglePoolTransaction', 'SinglePoolTransactionController');

    $router->get('/api/get_user_id', 'DataApiController@getUserId');

    $router->get('/api/{id}/subtree', 'DataApiController@showSubtree')
        ->name('子树');

    $router->get('/api/{id}/children', 'DataApiController@getChildren')
        ->name('孩子们');

    $router->get('/api/{id}/teamGroupOrder', 'DataApiController@teamGroupOrder')
        ->name('团队拼单');

//    $router->get('/api/{id}/team', 'DataApiController@team')
//        ->name('团队拼单');

    $router->get('im', 'ImController@index');
});
